<!DOCTYPE html>
<html lang="zh-CN">
@include('admin.head')

<body>

@include('admin.topNav')

<div class="container-fluid">
    <div class="row">
        @include('admin.leftNav')
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            @if(session('__Ajax_RedirectFunc_status') == true)
                <div>
                    <div class="alert alert-success alert-dismissible fade in" role="alert">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                        <h3>成功</h3>
                        <p><?php echo session('__Ajax_RedirectFunc_message');?></p>
                        <p><?php echo session('__Ajax_RedirectFunc_plugin');?></p>
                    </div>
                </div>
            @endif
            @if(session('__Ajax_RedirectFunc_status') === false)
                <div >
                    <div class="alert alert-danger alert-dismissible fade in" role="alert">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                        <h3>失败</h3>
                        <p><?php echo session('__Ajax_RedirectFunc_message');?></p>
                        <p><?php echo session('__Ajax_RedirectFunc_plugin');?></p>
                    </div>
                </div>
            @endif
            <h2 class="page-header">业务管理</h2>

            <div class="panel-body" >
                @foreach($serviceData as $data)
                <div class="col-md-3">
                    <div class="panel panel-primary" style="text-align: center;height: 294px">
                        <div class="panel-heading">{{$data->service_name}}</div>
                        <div class="panel-body" style="height: 200px">
                            <p>{!! $data->service_info !!}</p>
                        </div>
                        <div class="panel-footer">
                            单价：{{$data->service_price}} 元 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                           <a href="/delService/{{$data->service_id}}"  class="btn btn-danger btn-sm" class="pull-right">删除</a>
                        </div>
                    </div>
                </div>
                @endforeach
            </div>
        </div>
    </div>
</div>
</body>
</html>